/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objetosNegocio;

import enums.EnumTypePayment;
import enums.EnumTypeCC;
import java.util.Date;
import java.util.List;

/**
 *
 * @author QUINTERO
 */
public class History {
    
    private int id;
    private User user;
    private List<Ticket> tickets;
    private EnumTypePayment nameCardHolder;
    private long numCreditCard;
    private int code;
    private Date expirationDate;
    private String typePayment;
    private String typeCC;

    public History() {
    }

    public History(int id) {
        this.id = id;
    }

    public History(int id, User user, List<Ticket> tickets, EnumTypePayment nameCardHolder, long numCreditCard, int code, Date expirationDate, String typePayment, String typeCC) {
        this.id = id;
        this.user = user;
        this.tickets = tickets;
        this.nameCardHolder = nameCardHolder;
        this.numCreditCard = numCreditCard;
        this.code = code;
        this.expirationDate = expirationDate;
        this.typePayment = typePayment;
        this.typeCC = typeCC;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public EnumTypePayment getNameCardHolder() {
        return nameCardHolder;
    }

    public void setNameCardHolder(EnumTypePayment nameCardHolder) {
        this.nameCardHolder = nameCardHolder;
    }

    public long getNumCreditCard() {
        return numCreditCard;
    }

    public void setNumCreditCard(long numCreditCard) {
        this.numCreditCard = numCreditCard;
    }

    public List<Ticket> getTickets() {
        return tickets;
    }

    public void setTickets(List<Ticket> tickets) {
        this.tickets = tickets;
    }

    public String getTypeCC() {
        return typeCC;
    }

    public void setTypeCC(String typeCC) {
        this.typeCC = typeCC;
    }

    public String getTypePayment() {
        return typePayment;
    }

    public void setTypePayment(String typePayment) {
        this.typePayment = typePayment;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final History other = (History) obj;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + this.id;
        return hash;
    }

    @Override
    public String toString() {
        return "History{" + "id=" + id + ", user=" + user + ", tickets=" + tickets + ", nameCardHolder=" + nameCardHolder + ", numCreditCard=" + numCreditCard + ", code=" + code + ", expirationDate=" + expirationDate + ", typePayment=" + typePayment + ", typeCC=" + typeCC + '}';
    }
}
